#include<iostream>
using namespace std;
int main()
{
	int x;
	cin >> x;
	bool y = x;
	x = y;
	/*int a;
	cin>>a;
	if(a==0)
		cout<<0;
	else
		cout<<1;*/
	cout << x;
}